package com.itheima.generic;

import java.util.ArrayList;
import java.util.Arrays;

public class GenericDemo {
    public static void main(String[] args) {
        ArrayList<String> as = new ArrayList<>();
        as.add("张三");
        as.add("李四");
        as.add("王五");
        as.add("赵六");
        String[] strings = as.toArray(new String[as.size()]);
        System.out.println(Arrays.toString(strings));
    }
}
